﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;

namespace Ylh.IDAL
{
    public interface IComRole
    {
        /// <summary>
        /// 根据角色编号获取当前的角色信息
        /// </summary>
        /// <param name="ConStr"></param>
        /// <param name="RoleID">角色编号</param>
        /// <returns></returns>
        DataTable GetCompetenceByRoleID(string ConStr, string RoleID);


        /// <summary>
        /// 根据角色编号删除角色权限
        /// </summary>
        /// <param name="ConStr"></param>
        /// <param name="RoleID">角色编号</param>
        /// <returns></returns>
         bool DeleteComByRole(string ConStr, String RoleID);



        /// <summary>
        /// 插入权限关联
        /// </summary>
        /// <param name="ConStr"></param>
        /// <param name="RoleID"></param>
        /// <param name="ComID"></param>
        /// <returns></returns>
         int InsertCom(string ConStr, string RoleID, string ComID);

    }
}
